package com.caifu.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 费用信息表
 * </p>
 *
 * @author GZ
 * @since 2020-11-09
 */
public class YlCost extends Model<YlCost> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID（费用信息表)
     */
    @TableId("COST_NO")
    private Integer costNo;

    /**
     * 费用名称（唯一验证，同一类型的费用名称不能重复）
     */
    @TableField("COST_NAME")
    private String costName;

    /**
     * 费用金额，只能为数字
     */
    @TableField("COST_PRICE")
    private BigDecimal costPrice;

    /**
     * 费用类别 101:床位费 102护理费 103 长护险费 104：伙食费
     */
    @TableField("COST_TYPE")
    private String costType;

    /**
     * 费用内容图片
     */
    @TableField("COST_IMG")
    private String costImg;

    /**
     * 养老机构编号
     */
    @TableField("PENSION_NO")
    private String pensionNo;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private String createTime;

    /**
     * 管理员编号
     */
    @TableField("TELLER_NO")
    private String tellerNo;

    /**
     * 费用状态1：正常 9：删除
     */
    @TableField("STATUS")
    private String status;

    public Integer getCostNo() {
        return costNo;
    }

    public void setCostNo(Integer costNo) {
        this.costNo = costNo;
    }
    public String getCostName() {
        return costName;
    }

    public void setCostName(String costName) {
        this.costName = costName;
    }
    public BigDecimal getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }
    public String getCostType() {
        return costType;
    }

    public void setCostType(String costType) {
        this.costType = costType;
    }
    public String getCostImg() {
        return costImg;
    }

    public void setCostImg(String costImg) {
        this.costImg = costImg;
    }
    public String getPensionNo() {
        return pensionNo;
    }

    public void setPensionNo(String pensionNo) {
        this.pensionNo = pensionNo;
    }
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    public String getTellerNo() {
        return tellerNo;
    }

    public void setTellerNo(String tellerNo) {
        this.tellerNo = tellerNo;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.costNo;
    }

    @Override
    public String toString() {
        return "YlCost{" +
        "costNo=" + costNo +
        ", costName=" + costName +
        ", costPrice=" + costPrice +
        ", costType=" + costType +
        ", costImg=" + costImg +
        ", pensionNo=" + pensionNo +
        ", createTime=" + createTime +
        ", tellerNo=" + tellerNo +
        ", status=" + status +
        "}";
    }
}
